<?php

namespace App\Component\Tauth;

use Teeb\Base\Application;

class TauthManager
{
    protected $app;
    protected $tauth;
    protected $auth_config;
    public function __construct(Application $app)
    {
        $this->app = $app; //绑定app对象
        require_once($app->basePath().'/library/auth/Auth.class.php'); //引入Response类主接口文件
        $this->tauth = new \Auth($app);//初始化新的Response对象,并且传入构造初始化模板参数

    }

    public function __call($method, $param)
    {
        return call_user_func_array(array($this->tauth, $method), $param);  
    }
}